package com.ysd.lis.controller.lab;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.lab.LabInspectCompanyFeeitem;
import com.ysd.lis.entity.lab.LabInspectCompanyReqno;
import com.ysd.lis.request.lab.MakeReqNoDto;
import com.ysd.lis.service.lab.LabInspectCompanyReqnoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 送检单位-预制条码 前端控制器
 * </p>
 *
 * @author WH
 * @since 2024-10-23
 */
@RestController
@RequestMapping("/lab/inspectCompanyReqno")
public class LabInspectCompanyReqnoController extends BaseController {

    @Autowired
    private LabInspectCompanyReqnoService labInspectCompanyReqnoService;

    @ApiOperation("新增")
    @PostMapping("/makeReqNoList")
    public Result makeReqNoList(@RequestBody MakeReqNoDto makeReqNoDto){
        return  labInspectCompanyReqnoService.makeReqNoList(makeReqNoDto);
    }
    @ApiOperation("删除")
    @PostMapping("/deleteReqNo")
    public Result deleteReqNo(@RequestBody LabInspectCompanyReqno labInspectCompanyReqno){
        return  labInspectCompanyReqnoService.deleteReqNo(labInspectCompanyReqno);
    }

    @ApiOperation("查询预制记录")
    @PostMapping("/getReqNoList")
    public Result getReqNoList(@RequestBody MakeReqNoDto makeReqNoDto){
        return  labInspectCompanyReqnoService.getReqNoList(makeReqNoDto);
    }

}
